<html layout:decorator="public/form" xmlns:miguo="http://www.w3.org/1999/html">
<div layout:fragment="content">
	<form class="layui-form model-form" action="" >
		<input name="id" type="hidden" th:value="${info['id']}?:0">
		<div class="layui-form-item">
			<label class="layui-form-label">角色名称：</label>
			<div class="layui-input-block">
				<input name="name" th:value="${info['name']}" lay-verify="required" autocomplete="off" placeholder="请输入角色名称" class="layui-input" type="text">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">状态：</label>
			<div class="layui-input-block">
				<input type="checkbox" name="status" th:checked="${info['status']} eq 1" th:value="${info['status']}" lay-skin="switch" lay-text="正常|禁用" lay-filter="status">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">排序：</label>
			<div class="layui-input-block">
				<input name="sort" th:value="${info['sort']}" lay-verify="required|number" autocomplete="off" placeholder="请输入排序" class="layui-input" type="text">
			</div>
		</div>
		<div class="layui-form-item" style="margin-left: 50%; transform: translateX(-50%)">
			<button id="submitForm" lay-submit type="button" lay-filter="submitForm" class="layui-btn">立即保存</button>
			<button id="reset" type="reset" class="layui-btn layui-btn-primary">重置</button>
		</div>

<!--		<widget:btnSubmit name="submit|立即保存,close|关闭"/>-->
	</form>
</div>
</html>